<?php

namespace app\api\validate;

use app\common\validate\BaseValidate;

class Category extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'type' => 'integer',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'type.integer' => '类型要为数字',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'list'  => ['type'],
    ];
}
